/* 基础重置和字体 */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0 20px 40px;
    color: #333;
}

header {
    padding: 20px 0;
    border-bottom: 2px solid #007acc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    color: #007acc;
}

nav a.btn-link {
    text-decoration: none;
    color: #007acc;
    font-weight: 600;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a.btn-link:hover {
    background-color: #007acc;
    color: white;
    border-color: #007acc;
}

main {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 25px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    border-radius: 6px;
}

.message p {
    color: #d9534f; /* 红色提示 */
    font-weight: 600;
    margin-bottom: 20px;
}

.order-summary table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.order-summary th,
.order-summary td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
}

.order-summary th {
    background-color: #007acc;
    color: white;
    font-weight: 600;
}

.order-summary tbody tr:nth-child(even) {
    background-color: #f3faff;
}

.total-price {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: right;
    margin-top: 10px;
    color: #222;
}

.actions form {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.25s ease;
}

.btn-primary {
    background-color: #007acc;
    color: white;
}

.btn-primary:hover {
    background-color: #005f99;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #555;
}

.btn-secondary:hover {
    background-color: #c7c7c7;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 0.9rem;
}
